<extend name="Public:admin" />
<block name="content">
	<div class="layui-form">
		<blockquote class="layui-elem-quote">
			<a href="{:U('add',array('pid'=>$_GET['pid']))}" class="layui-btn layui-btn-small" id="add">
				<i class="layui-icon">&#xe608;</i> 添加信息
				<notempty name="Think.get.pid"><a class="layui-btn layui-btn-small" href="{:U('index')}">返回上级列表</a></notempty>
			</a>
		</blockquote>
		<fieldset class="layui-elem-field">
			<legend>{$langs['CONTROLLER']}{$langs['ACTION']}</legend>
		
			<table class="layui-table">
			  <colgroup>
			    <!-- <col width="50"> -->
			    <col width="150">
			    <col width="200">
			    <col width="200">
			    <col>
			    <col width="150">
			  </colgroup>
			  <thead>
			    <tr>
			      <!-- <th><input type="checkbox" name="id" lay-skin="primary" lay-filter="allChoose"></th> -->
			      <th>栏目名称</th>
			      <th>创建时间</th>
			      <th>排序</th>
			      <th>修改时间</th>
			      <th>操作</th>
			    </tr> 
			  </thead>
			  <tbody>
			  	<volist name="list" id="vo">
				<tr>
				  <!-- <td><input type="checkbox" name="id" lay-skin="primary" value="{$vo['id']}"></td> -->
				  <td><notempty name="Think.get.pid">{$vo.name}<else /><a href="{:U('index',array('pid'=>$vo['id']))}">{$vo.name}</a></notempty></td>
				  <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
				  <td>{$vo.sort}</td>
				  <td>{$vo.update_time|date="Y-m-d H:i:s",###}</td>
				  <td>
				  	<a href="{:U('edit',array('id'=>$vo['id']))}" class="layui-btn layui-btn-primary layui-btn-mini">编辑</a>
				  	<button link="{:U('del',array('id'=>$vo['id']))}" class="layui-btn layui-btn-primary layui-btn-mini del">删除</button></td>
				</tr>
			  	</volist>
			  </tbody>
			</table>
		</fieldset>
	</div>
	<div>{$page}</div>
</block>	